package com.kws.system.domain;

import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * <b>TbMerchantUserChat</b>
 *
 * @description: TbMerchantUserChat <br>
 * @date: 2024/12/6 17:02 <br>
 * @author: lhm <br>
 * @version: 1.0 <br>
 */
public class TbMerchantUserChat {
    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "发送者")
    private Long sendUser;

    @ApiModelProperty(value = "接收者")
    private Long toUser;

    @ApiModelProperty(value = "消息类型0安全与验证 1交易物流 2售后保障 3客服消息 4互动消息 5 系统消息")
    private Integer messageType;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "文件")
    private String file;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "状态0已读 1未读")
    private Integer status;

    @ApiModelProperty(value = "内容类型0文本 1文件、图片")
    private Integer contentType;

    @ApiModelProperty(value = "可用状态：0-不可用，1-可用")
    private String enable;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSendUser() {
        return sendUser;
    }

    public void setSendUser(Long sendUser) {
        this.sendUser = sendUser;
    }

    public Long getToUser() {
        return toUser;
    }

    public void setToUser(Long toUser) {
        this.toUser = toUser;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getContentType() {
        return contentType;
    }

    public void setContentType(Integer contentType) {
        this.contentType = contentType;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", sendUser=").append(sendUser);
        sb.append(", toUser=").append(toUser);
        sb.append(", messageType").append(messageType);
        sb.append(", content=").append(content);
        sb.append(", file").append(file);
        sb.append(", createTime=").append(createTime);
        sb.append(", status").append(status);
        sb.append(", contentType=").append(contentType);
        sb.append(", enable").append(enable);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
